if (window.plus) {
    ready();
} else {
    document.addEventListener('plusready', ready, false);
}

$(function(){
if(AGENT_CLIENT.WEB){
    ready();
}
})

function ready(){
var _user = getLocalStorage(STORAGE_MANAGER.user);
if (!_user) {
    redirect("login.html");
    return false;
}

var _phone = getUrlParam("phone");

//点击回退
$("#back").on("click", function () {
    back();
});

//修改登录密码
$("#loginPassword").on("click", function () {
    redirect("validatePhone.html?type=login&phone=" + _phone);
});

//修改支付密码  
$("#payPassword").on("click", function () {
    redirect("validatePhone.html?type=pay&phone=" + _phone);
});  
}
